﻿<?php
	//接收Cookie参数
	$userNick=$_COOKIE['nick'];
	$sessions=$_COOKIE['topsession'];
	//切换测试环境	
	$testMode = 'false';
	if ($testMode=='true'){
	   $url = 'http://gw.api.tbsandbox.com/router/rest?';  //沙箱环境提交URL
$sessionurl = 'http://container.api.tbsandbox.com/container?appkey='; //沙箱环境获取SessionKey
	$appKey = '12529639';  
 $appSecret = 'sandboxccc0ff8debcc739d9d753a851'; 
	}else if($testMode=='false'){
	   $url = 'http://gw.api.taobao.com/router/rest?';  //正式环境提交URL
$sessionurl = 'http://container.api.taobao.com/container?appkey='; //正式环境获取SessionKey	   
	$appKey = '12529598'; //填写自己申请的AppKey
 $appSecret = '05e184da24ca7602adfdcdb79ef6bf15'; //填写自己申请的$appSecret
	}	
?>
